<template>
  <div>
    <div class="home">
      <Layout>
        <Header class="header">
          <Menu mode="horizontal" theme="dark">
            <MenuItem name="1">
              <Icon type="ios-people" />
              <router-link to="/home">学生管理</router-link>
            </MenuItem>
            <MenuItem name="2">
              <Icon type="ios-paper" />
              <router-link to="/daliy">日报管理</router-link>
            </MenuItem>
            <MenuItem name="3">
              <Icon type="ios-paper" />
              <router-link to="/interview">面试相关</router-link>
            </MenuItem>
          </Menu>
        </Header>
      </Layout>
      <div class="exit">
        <Button @click="exit" type="error">退出登录</Button>
      </div>
    </div>
    <router-view />
  </div>
</template>

<script>
import ss from '../utils/ss'
export default {
  data() {
    return {

    };
  },
  methods:{
    exit(){
      ss.remove()
      this.$router.push('/')
    }
  }
};
</script>

<style scoped>
.exit{
  position: absolute;
  top: 15px;
  right: 30px;
  z-index: 999;
}
</style>
